import numpy as np
from typing import Dict, Tuple
from abc import ABC, abstractmethod

class ImagePreprocessor(ABC):
    """图像预处理抽象基类"""
    
    @abstractmethod
    def preprocess(self, image: np.ndarray) -> Tuple[np.ndarray, Dict]:
        """预处理图像并返回处理后的数据和元信息"""
        pass
